package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgUserOpen;
import com.ygqh.baby.po.YgUserOpenExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface YgUserOpenMapper {
	int countByExample(YgUserOpenExample example);

	int deleteByExample(YgUserOpenExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgUserOpen record);

	int insertSelective(YgUserOpen record);

	List<YgUserOpen> selectByExample(YgUserOpenExample example);

	YgUserOpen selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgUserOpen record, @Param("example") YgUserOpenExample example);

	int updateByExample(@Param("record") YgUserOpen record, @Param("example") YgUserOpenExample example);

	int updateByPrimaryKeySelective(YgUserOpen record);

	int updateByPrimaryKey(YgUserOpen record);

	int countSuper(@Param("q") String q);

	List<YgUserOpen> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	/**
	 * 只用于微信授权绑定
	 * 
	 * @param openId
	 * @return
	 */
	YgUserOpen selectByOpenId(@Param("openId") String openId);

	YgUserOpen selectBySmallOpenId(@Param("openId") String openId);

}
